#! /bin/bash
cwd=`pwd`
det_cwd=`pwd`/detect-serv

apt install -y apparmor apturl python3-brlapi python3-dev libcairo2-dev libopenblas-dev
pip3 install pip --upgrade

pip install ultralytics flask pycryptodomex lap cryptography 

cp $det_cwd/Arial.Unicode.ttf  /root/.config/Ultralytics/Arial.Unicode.ttf

wget https://developer.download.nvidia.cn/compute/redist/jp/v512/pytorch/torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl
pip3 install ./torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl
git clone --recursive --branch v0.16.0-rc4 https://gitee.com/minhanghuang/pytorch-vision.git --depth 1
cd pytorch-vision
python3 setup.py install

pip3 list | grep tensor

